package model

import (
	"gin/common/types"
)

type PanShare struct {
	Id        uint64           `json:"id" gorm:"column:id"`
	PanUserId uint64           `json:"pan_user_id" gorm:"column:pan_user_id"`
	PanFileId types.JSON       `json:"pan_file_id" gorm:"column:pan_file_id"`
	Password  string           `json:"password" gorm:"column:password"`
	ShareAt   types.TstampTime `json:"share_at" gorm:"column:share_at"`
	ShareId   int64            `json:"share_id" gorm:"column:share_id"`
	Link      string           `json:"link" gorm:"column:link"`
	Created   types.TstampTime `json:"created" gorm:"column:created;autoCreateTime"`
	Updated   types.TstampTime `json:"updated" gorm:"column:updated;autoUpdateTime"`
	ExpireAt  int64            `json:"expire_at" grom:"column:expire_at"`
}

// 设置表名
func (PanShare) TableName() string {
	return "pan_share"
}
